package me.ywd.seckill.dao;

import me.ywd.seckill.entity.SeckillProduct;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * Created by Administrator on 2016/11/8 0008.
 */
public interface SeckillProductDao {
    SeckillProduct findById(long id);
    List<SeckillProduct> findAll();
    int reduceProduct(@Param("productId") long productId, @Param("killTime") Date killTime);
}
